package top.greatxiaozou.abstractFactorPattern;

public class FactorBuilder{

    static AbsractFactor getFactor(String chioce){
        if (chioce.equals("color")){
            return new ColorFactor();
        }else if (chioce.equals("shape")){
            return new ShapeFactor();
        }else {
            return null;
        }
    }
}
